#include "FSMActionBase.h"

FSMActionBase::FSMActionBase()
{
}

FSMActionBase::~FSMActionBase()
{
}



FSMActionList::FSMActionList()
{
}

FSMActionList::~FSMActionList()
{
}

FSMActionList* FSMActionList::create(vector<FSMActionBase*>* _actions)
{
	FSMActionList* re = new FSMActionList();
	re->init(_actions);
	return re;
}

void FSMActionList::init(vector<FSMActionBase*>* actions)
{
	_actions = actions;
}

void FSMActionList::update(float dt)
{
	int len = _actions->size();
	for (int i = 0; i < len;i++)
	{
		_actions->at(i)->update(dt);
	}
}